#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int i = 0, j = 0;
	int ret = 1;
	int a = 0;
	for (i = 1; i < 11; i++)
	{
		for (j = 1; j < 11; j++)
		{
			ret = ret * j;
		}
		a = a + ret;
		printf("%d ",a);
	}

	return 0;
}